concerto.FacebookConnect = {
	login:function() {
		FB.login(function(response) {
				if(response.session) {
					location.reload(true);
				}
				else {
					// User cancelled login
				}
			},
			{
				perms:'publish_stream, offline_access, email'
			}
		);
	},
	logout:function() {
		FB.logout(function(response) {
			window.location=concerto.rootUrl;
		});
	}
}
